package com.faceye.core.service.model;

/**
 * 文件存储结果DTO
 * @author haipenge
 *
 */
public class WriteResult implements java.io.Serializable {

	/**
	 * @Desc:
	 * @Author:haipenge
	 * @Date:2018年8月5日 上午11:00:43
	 */
	private static final long serialVersionUID = 8170063918980802702L;
	
	private String filename="";//文件名,存储文件名
	private String originalFilename="";//原始文件名
	private String absolutePath="";//存储绝对路径（含文件名），exam:/data/file/images/2018/04/11/3322.jpg
	private String relativePath="";//存储相对路径（含文件名），路径为相对于指定存储根目录的路径，如指定存储根目录：/data/files/,则本属性值为：images/2018/04/11/3322.jpg
	private Long size=null;//文件大小（KB）
	private Integer code=0;//存储结果编码 【0：成功，1：失败】
	private String msg="";//消息
	public String getFilename() {
		return filename;
	}
	public void setFilename(String filename) {
		this.filename = filename;
	}
	public String getAbsolutePath() {
		return absolutePath;
	}
	public void setAbsolutePath(String absolutePath) {
		this.absolutePath = absolutePath;
	}
	
	public String getRelativePath() {
		return relativePath;
	}
	public void setRelativePath(String relativePath) {
		this.relativePath = relativePath;
	}
	public Long getSize() {
		return size;
	}
	public void setSize(Long size) {
		this.size = size;
	}
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public String getOriginalFilename() {
		return originalFilename;
	}
	public void setOriginalFilename(String originalFilename) {
		this.originalFilename = originalFilename;
	}
	

}
